package cn.nawang.ebeim.client.util;

import cn.nawang.ebeim.client.bean.ClientConfiguration;

/**
 * @ClassName: ApiConstants
 * @Description: TODO
 * @author fanyb
 * @date Aug 18, 2015 5:47:46 PM
 * @version v1.0
 */
public class ApiConstants {
  // 提交方法
  public static final String POST = "POST";
  public static final String GET = "GET";
  public static final String TOKEN="token=tokennawang";

  // 获取数据源列表url
  public static final String URL_DATASOURCE_LIST =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/datasource/find/terminalId";
  // 获取用户云存储列表
  public static final String URL_SCLOUD_LIST =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/storage_cloud/find/customer_id";
  // 获取备份日志列表
  public static final String URL_BACKUPLOG_LIST =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/backuplog/list";
  // 获取云存储前端列表
  public static final String URL_SSERVER_LIST =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/storage_server/find/storage_cloud_id";
  // 添加文件变更日志
  public static final String URL_FILE_CHANGE_LOG_ADD =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/file_change_log/add";
  public static final String URL_HEART_LOG_ADD =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/heartlog/save";
  // 添加备份日志
  public static final String URL_BACKUP_LOG_ADD =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/backuplog/add";
  // 更新备份日志
  public static final String URL_BACKUP_LOG_UPDATA =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/backuplog/updata";
  // 删除备份日志
  public static final String URL_BACKUP_LOG_DELETE =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/backuplog/delete";
//删除文件变更日志
 public static final String URL_FILECHANGE_LOG_DELETE =
     ClientConfiguration.getApiHost() + "/ebeim-api/api/token/file_change_log/delete/dsid";
  // 根据终端编号找到客户对象
  public static final String URL_GET_CUSTOMER_BY_TERMINALID =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/user/token/customer/find/terminalId";
  // 更新数据源
  public static final String URL_UPDATE_DATASOURCE =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/datasource/update";
  // 获取数据源对象
  public static final String URL_GET_DATASOURCE =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/datasource/get/id";
  // 获取备份策略对象
  public static final String URL_GET_BACKSTRATEGY =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/back_strategy/find/datasource_id";
  // 更新备份策略
  public static final String URL_UPDATE_BACK_STRATEGY =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/back_strategy/update";
  // 根据数据源编号和文件签名查找存储文件
  public static final String URL_GET_STORAGE_FILE_BY_DSID_SIGN =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/storage_file/find/datasource_id_and_signature";
  //获取用户所属云存储id
  public static final String URL_TB_STORAGE_STRATEGY_BY_CUSTOMER_ID =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/storage_strategyService/findCloudId/customer_id";
  // 获取客户的CustomerKey
  public static final String URL_FIND_CUSTOMER_KEY =
      ClientConfiguration.getApiHost() + "/ebeim-api/api/user/token/customer_key";
  
  public static final String URL_CUSTOMER_ENCRYPTION=
      ClientConfiguration.getApiHost() + "/ebeim-api/api/token/customer_encryption/customer_id";
}
